/*
 * Selling Partner API for Messaging
 * With the Messaging API you can build applications that send messages to buyers. You can get a list of message types that are available for an order that you specify, then call an operation that sends a message to the buyer for that order. The Messaging API returns responses that are formed according to the <a href=https://tools.ietf.org/html/draft-kelly-json-hal-08>JSON Hypertext Application Language</a> (HAL) standard.
 *
 * OpenAPI spec version: v1
 *
 *
 * NOTE: This class is auto generated by the swagger code generator program.
 * https://github.com/swagger-api/swagger-codegen.git
 * Do not edit the class manually.
 */

package software.amazon.spapi.models.messaging.v1;

import com.google.gson.annotations.SerializedName;
import io.swagger.v3.oas.annotations.media.Schema;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;

/** The messaging actions response that is associated with the specified &#x60;amazonOrderId&#x60;. */
@Schema(description = "The messaging actions response that is associated with the specified `amazonOrderId`.")
public class GetMessagingActionsForOrderResponseEmbedded {
    @SerializedName("actions")
    private List<GetMessagingActionResponse> actions = new ArrayList<GetMessagingActionResponse>();

    public GetMessagingActionsForOrderResponseEmbedded actions(List<GetMessagingActionResponse> actions) {
        this.actions = actions;
        return this;
    }

    public GetMessagingActionsForOrderResponseEmbedded addActionsItem(GetMessagingActionResponse actionsItem) {
        this.actions.add(actionsItem);
        return this;
    }

    /**
     * Get actions
     *
     * @return actions
     */
    @Schema(required = true, description = "")
    public List<GetMessagingActionResponse> getActions() {
        return actions;
    }

    public void setActions(List<GetMessagingActionResponse> actions) {
        this.actions = actions;
    }

    @Override
    public boolean equals(java.lang.Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        GetMessagingActionsForOrderResponseEmbedded getMessagingActionsForOrderResponseEmbedded =
                (GetMessagingActionsForOrderResponseEmbedded) o;
        return Objects.equals(this.actions, getMessagingActionsForOrderResponseEmbedded.actions);
    }

    @Override
    public int hashCode() {
        return Objects.hash(actions);
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("class GetMessagingActionsForOrderResponseEmbedded {\n");

        sb.append("    actions: ").append(toIndentedString(actions)).append("\n");
        sb.append("}");
        return sb.toString();
    }

    /** Convert the given object to string with each line indented by 4 spaces (except the first line). */
    private String toIndentedString(java.lang.Object o) {
        if (o == null) {
            return "null";
        }
        return o.toString().replace("\n", "\n    ");
    }
}
